import request from '@/utils/request'

// 查询科室任务列表
export function meetingDepartmentList(query) {
  return request({
    url: '/task/meetingDepartment/list',
    method: 'get',
    params: query
  })
}
// 新增科室任务
export function addmeetingDepartment(data) {
  return request({
    url: '/task/meetingDepartment',
    method: 'post',
    data: data
  })
}


// 获取科室任务详细信息
export function meetingDepartmentId(id) {
  return request({
    url: `/task/meetingDepartment/${id}`,
    method: 'get',
  })
}


// 修改科室任务
export function eitHmeetingDepartment(data) {
  return request({
    url: '/task/meetingDepartment',
    method: 'put',
    data: data
  })
}

// 删除科室任务
export function delmeetingDepartment(id) {
  return request({
    url: `/task/meetingDepartment/${id}`,
    method: 'delete'
  })
}

// 导出品类列表
export function exporTmeetingDepartment(data) {
  return request({
    url: '/task/meetingDepartment/export',
    method: 'post',
    data: data
  })
}

// 审核科室任务
export function meetingDepartmentAudit(query) {
  return request({
    url: '/task/meetingDepartment/audit',
    method: 'get',
    params: query
  })
}

// 同意科室会议
export function cliCAudit(data) {
  return request({
    url: '/task/meetingDepartment/audit',
    method: 'post',
    params: data
  })
}


// 未提交拜访任务
export function uncommit(data) {
  return request({
    url: '/task/meetingDepartment/un-commit',
    method: 'post',
    params: data
  })
}

// 不通过拜访任务
export function nopass(data) {
  return request({
    url: '/task/meetingDepartment/no-pass',
    method: 'post',
    data: data
  })
}